/**
 * 
 */
package com.ph.shopping.facade.mapper;

import java.util.List;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Service;
import com.ph.shopping.common.core.base.BaseMapper;
import com.ph.shopping.facade.supplier.entity.Supplier;
import com.ph.shopping.facade.supplier.vo.SupplierBalanceRecordVo;
import com.ph.shopping.facade.supplier.vo.SupplierVo;

/**
 * @项目：phshopping-service-Supplier
 *
 * @描述：供应商Mapper
 *
 * @作者： liuy
 *
 * @创建时间：2017年3月13日
 *
 * @Copyright @2017 by liuy
 */
@Component
@Service(version="1.0.0")
public interface SupplierMapper extends BaseMapper<Supplier>{
	
	/**
	 * 分页查询供应商信息
	 * @param supplierVo 供应商
	 * @return List<SupplierVo>
	 * @throws
	 */
	public List<SupplierVo> getSupplierVoListByPage(SupplierVo supplierVo);

	/**
	 * 查询供应商信息List
	 * @param supplierVo 供应商
	 * @return List<SupplierVo>
	 * @throws
	 */
	public List<SupplierVo> getSupplierVoList(Supplier supplier);
	
	/**
	 * 查询供应商明细信息
	 * @param supplierVo 供应商
	 * @return Supplier
	 * @throws
	 */
	public SupplierVo getSupplierDetail(SupplierVo supplierVo);

	/**
	 * 删除供应商图片信息
	 * @param supplierVo 供应商
	 * @return Integer
	 * @throws
	 */
	public Integer deleteSupplierImage(SupplierVo supplierVo);
	
	/**
	 * 批量删除供应商图片信息（物理删除）
	 * @param list 供应商Id
	 * @return void
	 * @throws
	 */
	public void batchDeleteSupplierImage(List<Long> list);
	
	/**
	 * 批量删除供应商信息
	 * @param list 供应商Id
	 * @return void
	 * @throws
	 */
	public void batchDeleteSupplier(List<Long> list);

	/**
	 * 分页查询供应商余额记录信息
	 * @param supplierBalanceR 余额记录
	 * @return List<SupplierBalanceRecordVo>
	 * @throws
	 */
	public List<SupplierBalanceRecordVo> getBalanceSupplierVoListByPage(SupplierBalanceRecordVo supplierBalanceR);
}
